package com.ctgu.A1_4.pays;

public class Credit extends Payment{//信用卡Credit，具有卡号（number）、类型（type）和过期日期（expireDate）；
    private String number;
    private String type;
    private String expireDate;

    @Override
    public String toString() {
        return "信用卡{" +
                "具有金额='" + super.getAmount() +'\'' +
                ", 卡号='" + number + '\'' +
                ", 类型='" + type + '\'' +
                ", 过期日期='" + expireDate + '\'' +
                '}';
    }

    public Credit() {
    }

    public Credit(String number, String type, String expireDate) {
        this.number = number;
        this.type = type;
        this.expireDate = expireDate;
    }

    public Credit(double amount, String number, String type, String expireDate) {
        super(amount);
        this.number = number;
        this.type = type;
        this.expireDate = expireDate;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }
}
